package yourapp.expense.util;

import yourapp.expense.entity.Expense;

public class ExpensePrinter {
  public static void printExpenseDetails(Expense expense) {
    System.out.printf("ID: %d, 金额: %.2f, 日期: %s, 描述: %s, 支付软件: %s, 购物平台: %s, 用途: %s%n",
        expense.getExpenseId(),
        expense.getAmount(),
        expense.getExpenseDate(),
        expense.getDescription(),
        expense.getPaymentAppName(),
        expense.getShoppingAppName(),
        expense.getPurposeCategoryName()
    );
  }
}
